package com.foreknow.elmboot.service.impl;

import com.foreknow.elmboot.mapper.BusinessMapper;
import com.foreknow.elmboot.po.Business;
import com.foreknow.elmboot.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessServiceImpl implements BusinessService {

    @Autowired
    private BusinessMapper businessMapper;

    @Override
    public List<Business> getOrderByTypeId(Integer orderTypeId) {
        return businessMapper.getOrderByTypeId(orderTypeId);
    }

    @Override
    public Business getBusinessByTypeId(Integer businessId) {
        return businessMapper.getBusinessByTypeId(businessId);
    }
}
